Avert crash in store_mode_line_string on Android 5.0 and earlier
authorPo Lu <luangruo@yahoo.com>
Wed, 26 Jun 2024 04:08:55 +0000 (12:08 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 26 Jun 2024 04:12:20 +0000 (12:12 +0800)
commit8b1841021c0d1ca92cb79443909824519429f75f
tree7d298edf4b9e3f44da7c2999a515429ec2cc1c7a
parente7c85f9235af485baba6e398b4f509f14bf80b1c
Avert crash in store_mode_line_string on Android 5.0 and earlier

* src/xdisp.c (store_mode_line_string)
[__ANDROID_API__ < 22]: Call strlen on STRING if the limit
would otherwise be SIZE_MAX, or if the address of the string
is within PRECISION bytes of UINTPTR_MAX, in which case it
cannot possibly be larger than PRECISION.
src/xdisp.c